package com.sky.financelake.bean.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class SimpleDayKDto implements Parcelable {

    private String name;

    private String code;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.code);
    }

    public void readFromParcel(Parcel source) {
        this.name = source.readString();
        this.code = source.readString();
    }

    public SimpleDayKDto() {
    }

    protected SimpleDayKDto(Parcel in) {
        this.name = in.readString();
        this.code = in.readString();
    }

    public static final Parcelable.Creator<SimpleDayKDto> CREATOR = new Parcelable.Creator<SimpleDayKDto>() {
        @Override
        public SimpleDayKDto createFromParcel(Parcel source) {
            return new SimpleDayKDto(source);
        }

        @Override
        public SimpleDayKDto[] newArray(int size) {
            return new SimpleDayKDto[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
